// e_triangle.cc
// RDB 17 Aug 2010
// Based on e_triangle.cc by JFL

#if 0 // Control compilation

#include "qec.h" // C++ base include for QE

// JFL 29 Jul 06
int gameMainLoop()
{
   // draw one triangle
   glBegin(GL_TRIANGLES);
      glVertex3f( 0, 1, 0);
      glVertex3f(-1,-1, 0);
      glVertex3f( 1,-1, 0);
   glEnd();
   
   return 0;
} // gameMainLoop()

// JFL 30 Jul 06
int qeMain(int argc,chr *argv[])
{
   // Print version information for debugging purposes
   qePrintf("%s / %s / %s\n",__FILE__,glGetString(GL_VERSION),qeVersion());

   // add a function object to the engine's processing list
   if(!qeObjAddFnc(gameMainLoop))
      qePrintf("** qeObjAddFnc() failed\n");

   // turn control over to the engine until the user closes the program
   qeForever();

   return 0;
} // qeMain()

#endif // compile this app
// EOF
